#ifndef EDGE_TREE_ITEM_H
#define EDGE_TREE_ITEM_H

#include "src/edge.h"
#include "treeItem.h"

#include <QTreeWidgetItem>

class EdgeTreeItem : public TreeItem {
	Q_OBJECT

    public:
        EdgeTreeItem(QTreeWidgetItem * = 0, Edge * = NULL);
        ~EdgeTreeItem();

        void updateEdge(Edge *);
        Edge *getEdge();

    public slots:
        void select();

    signals:
        void selected(Edge *);
        void deselected(Edge *);

    private:
        Edge *e;
};

#endif



